
<form name="editForm" role="form" novalidate ng-submit="vm.save()">

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                ng-click="vm.clear()">&times;</button>
        <h4 class="modal-title" id="myLeaguerLabel" data-translate="milkbeeApp.leaguer.home.createOrEditLabel">Create or edit a Leaguer</h4>
    </div>
    <div class="modal-body">
        <jhi-alert-error></jhi-alert-error>
        <div class="form-group" ng-show="vm.leaguer.id">
            <label for="id" data-translate="global.field.id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                    ng-model="vm.leaguer.id" readonly />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.createdAt" for="field_createdAt">Created At</label>
                <div class="input-group">
                    <input id="field_createdAt" type="text" class="form-control" name="createdAt" datetime-picker="{{dateformat}}" ng-model="vm.leaguer.createdAt" is-open="vm.datePickerOpenStatus.createdAt"
                      />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="vm.openCalendar('createdAt')"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </div>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.forbidden" for="field_forbidden">Forbidden</label>
            <input type="checkbox" class="form-control" name="forbidden" id="field_forbidden"
                    ng-model="vm.leaguer.forbidden"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.forbiddenDate" for="field_forbiddenDate">Forbidden Date</label>
                <div class="input-group">
                    <input id="field_forbiddenDate" type="text" class="form-control" name="forbiddenDate" datetime-picker="{{dateformat}}" ng-model="vm.leaguer.forbiddenDate" is-open="vm.datePickerOpenStatus.forbiddenDate"
                      />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="vm.openCalendar('forbiddenDate')"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </div>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.forbiddenMessage" for="field_forbiddenMessage">Forbidden Message</label>
            <input type="checkbox" class="form-control" name="forbiddenMessage" id="field_forbiddenMessage"
                    ng-model="vm.leaguer.forbiddenMessage"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.forbiddenSquare" for="field_forbiddenSquare">Forbidden Square</label>
            <input type="checkbox" class="form-control" name="forbiddenSquare" id="field_forbiddenSquare"
                    ng-model="vm.leaguer.forbiddenSquare"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.prevent" for="field_prevent">Prevent</label>
            <input type="checkbox" class="form-control" name="prevent" id="field_prevent"
                    ng-model="vm.leaguer.prevent"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.birth" for="field_birth">Birth</label>
                <div class="input-group">
                    <input id="field_birth" type="text" class="form-control" name="birth" datetime-picker="{{dateformat}}" ng-model="vm.leaguer.birth" is-open="vm.datePickerOpenStatus.birth"
                      />
                    <span class="input-group-btn">
                        <button type="button" class="btn btn-default" ng-click="vm.openCalendar('birth')"><i class="glyphicon glyphicon-calendar"></i></button>
                    </span>
                </div>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.name" for="field_name">Name</label>
            <input type="text" class="form-control" name="name" id="field_name"
                    ng-model="vm.leaguer.name"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.nikename" for="field_nikename">Nikename</label>
            <input type="text" class="form-control" name="nikename" id="field_nikename"
                    ng-model="vm.leaguer.nikename"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.score" for="field_score">Score</label>
            <input type="number" class="form-control" name="score" id="field_score"
                    ng-model="vm.leaguer.score"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.estateId" for="field_estateId">Estate Id</label>
            <input type="number" class="form-control" name="estateId" id="field_estateId"
                    ng-model="vm.leaguer.estateId"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.estateName" for="field_estateName">Estate Name</label>
            <input type="text" class="form-control" name="estateName" id="field_estateName"
                    ng-model="vm.leaguer.estateName"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.estateRank" for="field_estateRank">Estate Rank</label>
            <input type="number" class="form-control" name="estateRank" id="field_estateRank"
                    ng-model="vm.leaguer.estateRank"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.mana" for="field_mana">Mana</label>
            <input type="number" class="form-control" name="mana" id="field_mana"
                    ng-model="vm.leaguer.mana"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.userId" for="field_userId">User Id</label>
            <input type="number" class="form-control" name="userId" id="field_userId"
                    ng-model="vm.leaguer.userId"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.accusation" for="field_accusation">Accusation</label>
            <input type="number" class="form-control" name="accusation" id="field_accusation"
                    ng-model="vm.leaguer.accusation"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.gold" for="field_gold">Gold</label>
            <input type="number" class="form-control" name="gold" id="field_gold"
                    ng-model="vm.leaguer.gold"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.identification" for="field_identification">Identification</label>
            <input type="text" class="form-control" name="identification" id="field_identification"
                    ng-model="vm.leaguer.identification"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.realName" for="field_realName">Real Name</label>
            <input type="text" class="form-control" name="realName" id="field_realName"
                    ng-model="vm.leaguer.realName"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.idPicture" for="field_idPicture">Id Picture</label>
            <input type="text" class="form-control" name="idPicture" id="field_idPicture"
                    ng-model="vm.leaguer.idPicture"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.realPicture" for="field_realPicture">Real Picture</label>
            <input type="text" class="form-control" name="realPicture" id="field_realPicture"
                    ng-model="vm.leaguer.realPicture"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.cardCount" for="field_cardCount">Card Count</label>
            <input type="number" class="form-control" name="cardCount" id="field_cardCount"
                    ng-model="vm.leaguer.cardCount"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.commentCount" for="field_commentCount">Comment Count</label>
            <input type="number" class="form-control" name="commentCount" id="field_commentCount"
                    ng-model="vm.leaguer.commentCount"
                     />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="milkbeeApp.leaguer.avatar" for="field_avatar">Avatar</label>
            <input type="text" class="form-control" name="avatar" id="field_avatar"
                    ng-model="vm.leaguer.avatar"
                     />
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="vm.clear()">
            <span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span data-translate="entity.action.cancel">Cancel</span>
        </button>
        <button type="submit" ng-disabled="editForm.$invalid || vm.isSaving" class="btn btn-primary">
            <span class="glyphicon glyphicon-save"></span>&nbsp;<span data-translate="entity.action.save">Save</span>
        </button>
    </div>
</form>
